package main

import (
	"net/http"
	"goBasic/ketanx/help"
	"io/ioutil"
	"fmt"
)

var urlStr string = "https://www.toutiao.com/search/suggest/initial_page/"

func main()  {



	client := http.Client{}

	response, err := client.Get(urlStr)
	help.CheckError(err)

	defer response.Body.Close()
	if response.StatusCode == 200 {
		data,err := ioutil.ReadAll(response.Body)
		help.CheckError(err)
		fmt.Println(string(data))
	} else {

	}




}

